package com.ccc.scala.base7_collection

import scala.collection.mutable.ListBuffer

object Collection10_Seq3 {

  def main(args: Array[String]): Unit = {
    // 可变集合
    val buffer1 = ListBuffer(1, 2, 3, 4)
    val buffer2 = ListBuffer(1, 2, 3, 4)


    // 与不可变集合的转换
    val buffer = ListBuffer(1, 2, 3, 4)
    val list = List(5, 6, 7, 8)

    // 可变集合转不可变集合
    val list1 = buffer.toList
    // 不可变集合转换可变集合
    val buffer3 = list.toBuffer
  }

}
